// 存储token
export function saveToken (value, key = 'token') {
  window.localStorage.setItem(key, value)
}

// 获取token
export function getToken (key = 'token') {
  return window.localStorage.getItem(key)
}

// 删除token
export function removeToken (key = 'token') {
  window.localStorage.removeItem(key)
}
